@charset "utf-8";
/* 基础样式重置 */
ul, li, h1, h2, h3, h4, p, img, video {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
}
img, video {
    max-width: 100%;
    display: block;
}
body {
    background-color: #cad0d0;
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.clear {
    clear: both;
}

/* 容器样式 */
.main {
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 1. 顶部搜索栏和导航栏 */
.top-bar {
    background-color: #0d3221;
    padding: 10px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 搜索栏样式 */
.search-box {
    float: left;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 6px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
    width: 220px;
}

.search-box button {
    background-color: #c8805a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #b06d4a;
}

/* 顶部导航链接 */
.top-nav {
    float: right;
}
.top-nav li {
    float: left;
    margin-left: 25px;
}
.top-nav li a {
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}
.top-nav li a:hover {
    color: #CCFF66;
}
.top-nav li i {
    margin-right: 5px;
}

/* 2. 轮播图样式 */
.banner {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-inner {
    width: 100%;
    height: 100%;
}
.carousel-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.carousel-item.active {
    display: block;
    animation: fadeIn 0.8s ease;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.carousel-control:hover {
    background-color: rgba(0,0,0,0.7);
}
.carousel-control.prev {
    left: 20px;
}
.carousel-control.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}
.indicator.active {
    background-color: #fff;
}

/* 3. 主导航菜单 */
.main-menu {
    background-color: #0d3221;
    border-bottom: 3px solid #c8805a;
}
.main-menu ul {
    display: flex;
    justify-content: center;
}
.main-menu li {
    flex: 1;
    text-align: center;
}
.main-menu li a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
.main-menu li a:hover {
    color: #CCFF66;
    background-color: #154a33;
}

/* 4. 内容区域样式 */
.content {
    background-color: #c8805a;
    padding-bottom: 30px;
    color: #304d51;
    font-size: 16px;
    line-height: 26px;
}

/* 标题栏 */
.bar {
    border-bottom: #304d51 solid 1px;
    margin: 0 20px;
    padding: 15px 0;
    text-align: center;
}
.bar h3 {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* 内容填充区 */
.pad {
    padding: 20px;
    font-size: 15px;
}

/* 景点列表 */
.list {
    width: 100%;
    margin-top: 10px;
}
.list ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 20px;
    gap: 15px;
}
.list li {
    flex: 1;
    min-width: 220px;
    overflow: hidden;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}
.list li img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.list li h3 {
    color: #fff;
    padding: 10px 0;
    font-size: 16px;
}
.list li a:hover h3 {
    color: #CCFF66;
}

/* 视频容器 */
.video-container {
    text-align: center;
    padding: 20px;
}
.video-container video {
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 5. 页脚样式 */
.end {
    background-color: #9e9292;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
